<? if (isset($this->paginator) && count($this->paginator) > 0) {
    if (!isset($this->paramName) ){
        $this->paramName = "page";
    }
    $this->url = $this->url . $this->paramName . '/';


?>

    <div class="pagination">
        <?php if (isset($this->paginator['firstPage'])){ ?>
                <a title="Primera Pagina" href="<?php echo $this->url.$this->paginator['firstPage']; ?>">« Primera</a>
        <?php } 
               if (isset($this->paginator['prevPage'])){ ?>
                <a title="Siguiente Pagina" href="<?php echo $this->url.$this->paginator['prevPage']; ?>">« Anterior</a>
        <?php }
                if (isset($this->paginator['pages'])){
                    foreach ($this->paginator['pages'] as $page){
                        if ($page == $this->paginator['currentPage']){ ?>
                            <a title="<?php echo $page; ?>" class="number current" href="<?php echo $this->url.$page; ?>"><?php echo $page; ?></a>
               <?php    }else{ ?>
                            <a title="<?php echo $page; ?>" class="number" href="<?php echo $this->url.$page; ?>"><?php echo $page; ?></a>
                <?php    }
                    }
                } if (isset($this->paginator['nextPage'])){ ?>
                            <a title="Siguiente P&aacute;gina" href="<?php echo $this->url.$this->paginator['nextPage']; ?>">Siguiente »</a>
        <?php }
               if (isset($this->paginator['lastPage'])){ ?>
                            <a title="&Uacute;ltima P&aacute;gina" href="<?php echo $this->url.$this->paginator['lastPage']; ?>">&Uacute;ltima »</a>
        <?php } ?>
        
    </div>

<?php } ?>